<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<header id="navtop">
		<a href="${pageContext.request.contextPath}/view/home.do" class="logo fleft">
			<img src="${pageContext.request.contextPath}/resources/img/logo.png" alt="Designa Studio">
		</a>
		<nav class="fright">
			<ul>
				<li><a href="${pageContext.request.contextPath}/view/home.do" id="homeToDirect" class="navactive">홈으로</a></li>
				<li><a href="${pageContext.request.contextPath}/views/blog.do" >글쓰기</a></li>
			</ul>
<%-- 			<ul>
				<li><a href="${pageContext.request.contextPath}/views/work.do" >Works</a></li>
				<li><a href="${pageContext.request.contextPath}/views/blog.do" >블로그</a></li>
				<li><a href="${pageContext.request.contextPath}/views/about.do" >소개</a></li>
			</ul> --%>
			<ul>
					<c:choose>
						<c:when test="${AUTH_YN=='Y'}">
							<li><a href="${pageContext.request.contextPath}/views/work.do" >관리페이지</a></li>
						</c:when>
						<c:otherwise>
							<li></li>
						</c:otherwise>
					</c:choose>
					
					<c:choose>
						<c:when test="${LOGIN_YN=='Y'}">
							<li><a class="logout_btn" id="logout_btn">나가기</a></li>
						</c:when>
						<c:otherwise>
							<li id="joinLink" ><a href="${pageContext.request.contextPath}/views/join.do" > 가입하기 </a></li>
						</c:otherwise>
					</c:choose>
			</ul>
		</nav>
</header>



				<ul id="header_left">
					<c:choose>
						<c:when test="${LOGIN_YN=='N'}">
  							<li><input id="txt_email" type="email" name="usermail"
								placeholder="yourname@email.com" required></li>
							<li style="width: 120px"><input id="txt_pwd"
								type="password" name="password" placeholder="password" required></li>
							<li id="active" style="margin-left: -20px"><a
								class="login_btn" id="current">입장하기</a></li>
						</c:when>
						<c:otherwise>
							<li data-loginYN="Y" id="loginCheck" style="width: 400px" ><strong>${USER_NAME}</strong>님, 반갑습니다. </li>					
						</c:otherwise>
					</c:choose>
				</ul>

				<ul id="header_right">
<!-- 					<li><div id="Notes">
							<div class="bubble">
								<p class="label">1</p>
							</div>
						</div></li>
					<li><div id="Mail">
							<div class="bubble">
								<p class="label">1</p>
							</div>
						</div></li> -->

					<c:choose>
						<c:when test="${LOGIN_YN=='N'}">
						</c:when>
						<c:otherwise>
							<li><div id="Messages">
								<%-- 	<div class="bubble">
										<p class="label" id="lbl_cmt_cnt" style="cursor: pointer;">${CMT_CNT}</p>
									</div> --%>
								</div></li>
						</c:otherwise>
					</c:choose>


				</ul>